package com.thethinkfactory.whosappfor.model.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class MySQLiteHelper extends SQLiteOpenHelper {

	private static final String DATABASE_NAME = "whosappfor.db";
	private static final int DATABASE_VERSION = 1;

	public MySQLiteHelper(Context context) {
		super(context, DATABASE_NAME, null, DATABASE_VERSION);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		TableEvent.onCreate(db);
		TableUser.onCreate(db);
		TableVote.onCreate(db);

	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		TableEvent.onUpgrade(db, oldVersion, newVersion);
		TableUser.onUpgrade(db, oldVersion, newVersion);
		TableVote.onUpgrade(db, oldVersion, newVersion);

	}

}
